xend: Replace tabs with 8 whitespaces in DevController.py
authorKeir Fraser <keir@xensource.com>
Fri, 15 Jun 2007 09:01:32 +0000 (10:01 +0100)
committerKeir Fraser <keir@xensource.com>
Fri, 15 Jun 2007 09:01:32 +0000 (10:01 +0100)
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/server/DevController.py

index faba7bf400a0c0671988bbdae0bd9d62ebe34487..6984435385f5619c4e33652520046bccb9f9a006 100644 (file)
@@ -213,7 +213,7 @@ class DevController:
         devid = int(devid)
 
         frontpath = self.frontendPath(devid)
-       if frontpath:
+        if frontpath:
             backpath = xstransact.Read(frontpath, "backend")
 
         # Modify online status /before/ updating state (latter is watched by
@@ -224,22 +224,22 @@ class DevController:
         if force:
             if backpath:
                 xstransact.Remove(backpath)
-           if frontpath:
+            if frontpath:
                 xstransact.Remove(frontpath)
-           return
-
-       # Wait till both frontpath and backpath are removed from
-       # xenstore, or timed out
-       if frontpath:
-           status = self.waitUntilDestroyed(frontpath)
-           if status == Timeout:
-               # Exception will be caught by destroyDevice in XendDomainInfo.py
-               raise EnvironmentError
-       if backpath:
-           status = self.waitUntilDestroyed(backpath)
-           if status == Timeout:
-               # Exception will be caught by destroyDevice in XendDomainInfo.py
-               raise EnvironmentError
+            return
+
+        # Wait till both frontpath and backpath are removed from
+        # xenstore, or timed out
+        if frontpath:
+            status = self.waitUntilDestroyed(frontpath)
+            if status == Timeout:
+                # Exception will be caught by destroyDevice in XendDomainInfo.py
+                raise EnvironmentError
+        if backpath:
+            status = self.waitUntilDestroyed(backpath)
+            if status == Timeout:
+                # Exception will be caught by destroyDevice in XendDomainInfo.py
+                raise EnvironmentError
 
         self.vm._removeVm("device/%s/%d" % (self.deviceClass, devid))